<template>
    <div class="login-page" :style="wh">
        <div class="web-login">
          <div class="login-form">
            <div>
              <form>
                <div class="form-group">
                  <input type="tel" maxlength="13" placeholder="账号 : " class="input-control" >
                  <!-- <div class="get-code" style="position:absolute;right:0px;top:0px;color: #bdc0c5;">获取验证码</div> -->
                </div>
                <div class="form-group">
                  <input type="number" placeholder="密码 : " class="input-control" >
                </div>
                <div class="remenber">
                  <mt-switch v-model="savePass">记住密码</mt-switch>
                </div>
                <div class="submit" @click="subLogin">
                  <!-- <input type="button" name="submit" value="登 录" /> -->
                  <span>登录</span>
                </div>
              </form>
            </div>
          </div>
        </div>
    </div>
</template>
<script>
import Vue from 'vue'
import { Switch } from 'mint-ui'
Vue.component(Switch.name, Switch)
export default {
  data () {
    return {
      wh: {
        width: '0px',
        heght: '0px'
      },
      savePass: true
    }
  },
  mounted () {
    this.wh.width = document.documentElement.clientWidth + 'px'
    this.wh.height = document.documentElement.clientHeight + 'px'
  },
  methods: {
    subLogin () {
      console.log('login')
    }
  }
}
</script>
<style lang="scss" scoped>
body,html,div,img {
  margin: 0px;
  padding: 0px;
}
.login-page {
  width:100%;
  height:100%;
  background: url('/img/login/loginBackground.jpg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  .web-login {
    width:100%;
    height:auto;
    font-size: 15px;
    div {
      box-sizing: border-box;
    }
    .login-form {
      width: 100%;
      padding:300px 25px 0px 25px;
      opacity: 0.8;
      div {
        form {
          display: block;
          margin-top: 0em;
          .form-group {
            width: 90%;
            text-align: center;
            line-height: 55px;
            .input-control {
              margin: 10px 0px;
              height: 15px;
              line-height: 15px;
              padding: 20px;
              width: 100%;
              font-size: 15px;
              color: #191a1b;
              border: 0;
              outline-width: 0;
            }
          }
          .remenber {
            float:right;
            opacity: 1;
            color: #fff;
            margin-top: 10px;
            font-size: 18px;
          }
          .submit {
            line-height: 45px;
            font-size: 18px;
            margin: 80px 45px 0;
            border-radius: 3px;
            text-align: center;
            background-color: #ff5f16;
            height: 44px;
            color: #fff;
            border: none;
          }
        }
      }
    }
  }
}

</style>
